'''
Created on Jul 30, 2011

@author: rafael
'''
def to_unicode_or_bust(obj, encoding='utf-8'):
    if isinstance(obj, basestring):
            if not isinstance(obj, unicode):
                obj = unicode(obj, encoding)
    return obj

